home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Space & Astronomy
/
Space and Astronomy (October 1993).iso
/
mac
/
programs
/
space
/
AA_51.ZIP
/
KEP.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-13
|
3KB
|
96 lines
/* General definitions for aa program */
#include <stdio.h>
struct orbit
{
char obname[16]; /* name of the object */
double epoch; /* epoch of orbital elements */
double i; /* inclination */
double W; /* longitude of the ascending node */
double w; /* argument of the perihelion */
double a; /* mean distance (semimajor axis) */
double dm; /* daily motion */
double ecc; /* eccentricity */
double M; /* mean anomaly */
double equinox; /* epoch of equinox and ecliptic */
double mag; /* visual magnitude at 1AU from earth and sun */
double sdiam; /* equatorial semidiameter at 1au, arc seconds */
/* The following used by perterbation formulas: */
int (*oelmnt )(); /* address of program to compute elements */
int (*celmnt )(); /* program to correct longitude and radius */
double L; /* computed mean longitude */
double r; /* computed radius vector */
double plat; /* perturbation in ecliptic latitude */
};
struct star
{
char obname[32]; /* Object name (31 chars) */
double epoch; /* Epoch of coordinates */
double ra; /* Right Ascension, radians */
double dec; /* Declination, radians */
double px; /* Parallax, radians */
double mura; /* proper motion in R.A., rad/century */
double mudec; /* proper motion in Dec., rad/century */
double v; /* radial velocity, km/s */
double equinox; /* Epoch of equinox and ecliptic */
};
/* Note the items for a star are in different measurement units
* in the ASCII file description.
*/
/* aa.c */
extern double DTR;
extern double RTD;
extern double RTS;
extern double STR;
extern double PI;
extern double J2000;
extern double B1950;
extern double J1900;
extern double JD;
extern double TDT;
extern double UT;
extern double dradt, ddecdt;
extern int objnum, jdflag, prtflg;
extern double obpolar[];
extern double eapolar[];
extern double rearth[];
extern double dp[];
/* angles.c */
extern double SE, SO, EO, pq, ep, qe;
/* nutate.c */
extern double jdnut, nutl, nuto;
/* epsiln.c */
extern double jdeps, eps, coseps, sineps;
/* vearth.c */
extern double jvearth, vearth[];
/* dms.c */
double mod360(), modtp();
double acos(), asin(), atan(), zatan2(), cos(), sin();
double tan(), sqrt(), fabs(), log(), floor(), polevl();
/* DEBUG = 1 to enable miscellaneous printouts. */
#define DEBUG 0
/* OFDATE = 1 for equinox of date in Meeus planetary
* orbit perturbation formulas.
* OFDATE = 0 for equinox J2000.
*/
#define OFDATE 0
/* Earth longitude and radius per Bretagnon and Simon
* (see pearth.c).
*/
#define BandS 0
int showrd(), showcor(), dms(), hms(), jtocal(), epsiln();
int fk4fk5(), kepler(), kinit(), getnum(), deltap();
int lonlat(), nutate(), precess(), reduce(), rstar(), dosun();
int lightt(), velearth(), diurpx(), diurab(), update();
int relativity(), showcname(), annuab(), angles(), altaz();
int manoms(), domoon();
int getstar(), getorbit(), trnsit();